package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.BaseRespVo;
import com.cskaoyan.bean.vo.homeIndex.HomeIndexInfo;
import com.cskaoyan.service.wx.HomePageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 杨杰
 * @version V1.0
 * @Package com.cskaoyan.controller.wx
 * @date 2020/12/8 14:00
 * @Copyright © 暂时还没有
 * @description  小程序主页 Home_index
 */
@Controller
@RequestMapping("wx/home")
public class HomePageController {
    @Autowired
    HomePageService homePageService;

    @ResponseBody
    @RequestMapping("index")
    public BaseRespVo homeIndexMessage(){

        HomeIndexInfo indexInfo = homePageService.homeIndexMessage();

        return BaseRespVo.ok(indexInfo);
    }
}
